package com.zh.goods.dao;

import com.zh.goods.domain.GoodsDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-12-12 09:50:30
 */
@Mapper
public interface GoodsDao {

	GoodsDO get(String id);
	
	List<GoodsDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsDO scGoods);
	
	int update(GoodsDO scGoods);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	List<GoodsDO> getAll();

	List<GoodsDO> get1(String id);
}
